﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using QuickVal.Validators;

namespace QuickVal.Models
{
    public class Widget
    {
        public int Id { get; set; }
        [RequiredIf("IsRequired", "true", "ErrorMessage", ErrorMessage="* Required")]
        public string Name { get; set; }
        public bool IsRequired { get; set; }
        public string ErrorMessage { get; set; }
    }
}